
package com.zhitan.ems.app.patrol.wrapper;
import com.zhitan.ems.app.patrol.entity.PatrolNoticeEntity;
import com.zhitan.ems.app.patrol.vo.PatrolNoticeVO;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;

  /**
 * 上报消息 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2024-11-02 14:05:24
 */
public class PatrolNoticeWrapper extends BaseEntityWrapper<PatrolNoticeEntity, PatrolNoticeVO>  {
    public static PatrolNoticeWrapper build() {
        return new PatrolNoticeWrapper();
    }
	@Override
	public PatrolNoticeVO entityVO(PatrolNoticeEntity patrolNotice) {
		if(patrolNotice==null) {
			return null;
		}
		PatrolNoticeVO patrolNoticeVO = BeanUtil.copy(patrolNotice, PatrolNoticeVO.class);
		return patrolNoticeVO;
	}

}
